<?php
namespace app\admin\validate;

use think\Validate;

class Cate extends Validate
{
    protected $rule = [
        'cate_name'  =>  'require|unique:tp_cate',//必须跟上数据库名
        

    ];


    protected $message  =   [
        'cate_name.require' => '品牌名称必须',
        'cate_name.unique'     => '品牌名称必须唯一',

    ];

}